#include "mainpage.h"
#include "ui_mainpage.h"
#include "breakfast.h"
#include "lunch.h"
#include "dinner.h"

Mainpage::Mainpage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Mainpage)
{
    ui->setupUi(this);
}

Mainpage::~Mainpage()
{
    delete ui;
}

void Mainpage::on_pushButton_clicked()
{
    Breakfast *s = new Breakfast;
    s->show();
    this->close();
}

void Mainpage::on_pushButton_2_clicked()
{
    Lunch *s = new Lunch;
    s->show();
    this->close();
}

void Mainpage::on_pushButton_3_clicked()
{
    Dinner *s = new Dinner;
    s->show();
    this->close();
}
